import 'package:chatroom_flutter_app/ui/page/home_page.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

//dio
//https://github.com/cfug/dio/blob/main/dio/README-ZH.md

//screen util
//https://pub.dev/packages/flutter_screenutil/install

//svga player
//https://pub.dev/packages/svgaplayer_flutter/install

//网易云信
//https://pub.dev/packages/nim_core/install

//agora
//https://pub.dev/packages/agora_rtc_engine/versions/5.3.1/install

//carousel_slider swiper
//https://pub.dev/packages/carousel_slider/install



 main() async {
  //await ScreenUtil.ensureScreenSize();
   SystemChrome.setSystemUIOverlayStyle(
       const SystemUiOverlayStyle(statusBarBrightness: Brightness.light) // Or Brightness.dark
   );
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return ScreenUtilInit(
        designSize: const Size(375, 811.5),
        builder: (BuildContext context, Widget? child) {
        return const MaterialApp(
            home: HomePage()
        );
    }
    );
  }
}

